package com.java.thread.group.Thread;

/**
 * 实现Thread接口;
 *
 */
class MyThread extends Thread {
    @Override
    public void run() {
        System.out.println("这⾥是线程运⾏的代码");
    }
}
 class MyThreadTest {
    public static void main(String[] args)  {
        MyThread t = new MyThread();
        t.start();
    }
}
